<template>
  <div class="student">
    <h3 @click="showName">学校名称:{{ name | mySlice }}</h3>
    <h3>地址：{{ address }}</h3>
  </div>
</template>

<script>
// 局部混合
export default {
  name: "School",
  data() {
    return { name: "xgg_awefawefaefef", address: "北京" };
  },
};
</script>

<style>
.student {
  background-color: orange;
}
</style>